package com.common.www.bean.entity.tabulation;


import org.springframework.boot.base.jpa.domain.annotations.QueryCacheable;
import org.springframework.boot.base.jpa.domain.entity.NumberIdentityEntity;
import com.common.www.bean.entity.project.BiddingCompany;
import com.common.www.bean.entity.project.Project;
import com.common.www.bean.entity.project.XfgcBiddingCompany;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import lombok.*;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 消防工程标底、清单关联信息
 *
 * @param
 * @author andyliu
 * @date 5/28/2018 4:23 PM
 * @return
 */
@DynamicUpdate(true)
@DynamicInsert(true)
@Entity
@Getter
@Setter
@QueryCacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Table()
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "消防工程清单关联信息")
@JsonIgnoreProperties(ignoreUnknown=true)
public class XfgcSummary extends NumberIdentityEntity {

    /**
     * 项目
     */
    @JsonIgnoreProperties(value = {""})
    @ManyToOne()
    private Project project;
    /**
     * 归属项目和公司
     */
    @JsonIgnoreProperties(value = {""})
    @ManyToOne()
    private XfgcBiddingCompany xfgcBiddingCompany;
    /**
     * 参加阶段；1.标底 2.回标1 3.回标2 4.回标3 5.定标
     */
    @Column(length = 11)
    private Integer jieDuan;
    /**
     * 文件名
     */
    @Column(length = 128)
    private String fileName;

}